#header{
<!-- umeditor-->
<link type="text/css" rel="stylesheet" href="/css_js/umeditor/themes/default/css/umeditor.css"> }# #body{

<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5></h5>
			</div>
			<div class="ibox-content">
				<form method="post" action="!!SplitUrl(" user/main/userupdate ")!!">
					<input name="id" value="!!isset($output[0])?$output[0]:'0'!!" hidden/>
					<input name="data[QQ_pic]" id="pic" value="!!isset($output[0])?$output['QQ_pic']:'0'!!" hidden/>
					<input name="data[sex]" value="!!isset($output[0])?$output['sex']:'0'!!" hidden/>
					<input name="data[openid]" value="!!isset($output[0])?$output['openid']:'0'!!" hidden/>
					<input name="data[Qzone_pic]" value="!!isset($output[0])?$output['Qzone_pic']:'0'!!" hidden/>
					<input name="data[years]" value="!!isset($output[0])?$output['years']:'0'!!" hidden/>
					<input name="data[addr]" value="!!isset($output[0])?$output['addr']:'0'!!" hidden/>
					<input name="data[createtime]" value="!!isset($output[0])?$output['createtime']:'0'!!" hidden/>
					<div class="form-horizontal m-t">

						<div class="form-group">
							<label class="col-sm-1 control-label">昵称：</label>
							<div class="col-sm-5">
								<input class="form-control" name="data[nickname]" size="10" type="text" value="!!isset($output[0])?$output['nickname']:''!!" />
								<span class="field-validation-error" veri-for=""></span>
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-sm-1 control-label">coin：</label>
							<div class="col-sm-5">
								<input class="form-control" name="data[coin]" size="10" type="text" value="!!isset($output[0])?$output['coin']:''!!" />
								<span class="field-validation-error" veri-for=""></span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-1 control-label">头像</label>
							<div class="col-sm-4">
								<div class="upload">
									<div class="uploadPreview1">
										<?php echo isset($output[0])?"<img style='width:15%' src='{$output['QQ_pic']}' />":'暂无图片' ?>
									</div>
									<div class="left">
										<div class="uploadProgressBar"></div>
										<div class="uploadBut1" id="uploadBut1">选择图片</div>
										<!--<input type="file" name="file" id="file" />-->
									</div>
									<div class="clear"></div>
								</div>
							</div>
						</div>

						<div class="form-group">
							<div class="col-sm-2 col-sm-offset-1">
								<button class="btn btn-primary" onclick="return submit_form()">保存</button>
								<a href="!!SplitUrl(" user/main/user ")!!" class="btn btn-sm btn-white"> 返 回 </a>
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>

}# #footer{
<!-- umeditor-->
<script type="text/javascript" src="/css_js/umeditor/umeditor.config.js?time=<?php echo date(" Ymdhis ") ?>"></script>
<script type="text/javascript" src="/css_js/umeditor/umeditor.js"></script>
<script type="text/javascript" src="/css_js/umeditor/lang/zh-cn/zh-cn.js"></script>
<!-- jQuery Validation-->
<script src="/css_js/jQuery Validation/jquery.validate.min.js"></script>
<script src="/css_js/jQuery Validation/jquery.validate.unobtrusive.js"></script>

<script type="text/javascript">
	//验证输入
	function verify() {
		if($("input[name='data[name]']").val() == "") {
			$("[name='data[name]']").next().html('请输入标题')
			return false;
		}
		if($("#msg").val() == "<p><br></p>") {
			$("[veri-for='msg']").html('请输入内容')
			return false;
		}
		return true;
	}

	function submit_form() {
		//		$("#msg").val($("#Body").html());
		return verify();
	}

	window.UMEDITOR_CONFIG.imageUrl = "!!SplitUrl("
	user / main / userUp / upfile ")!!";
	var um1 = UM.getEditor('Body');
	um1.addListener('fullscreenchanged', resetbody);

	function resetbody(type, isfullscreen) {
		if(!isfullscreen) {
			// 重置编辑器内容区域高度，这个高度在切换全屏时会改变，应该是 UMEditor 自身的BUG
			$("body").css("overflow", "");
		}
	}
</script>

<!-- webuploader css -->
<link rel="stylesheet" href="/css_js/webuploader/webuploader.css" type="text/css" />
<!-- webuploader js -->
<script src="/css_js/webuploader/webuploader.min.js"></script>
<script type="text/javascript">
	function uploadImg(button, div, input) {

		var uploader = WebUploader.create({
			// 自动上传
			auto: true,
			// 选择文件的按钮
			pick: button,
			// swf文件路径
			swf: '/content/www/lib/webuploader/Uploader.swf',
			// 文件接收服务端。
			server: '<?php echo SplitUrl("user/main/userUp/file") ?>',
			method: 'POST'
		});
		uploader.on('uploadProgress', function(file, percentage) {
			$(div).html("上传中...");
		});

		uploader.on('uploadSuccess', function(file, response) {
			//文件效验
			if(response == "-1") //简单的图片上传需要验证
				$(div).html('文件出错');
			else if(response == "-2")
				$(div).html('类型不允许');
			else if(response == "-3")
				$(div).html('文件太大');
			else {
				//获取原始数据
				var data = response._raw;
				$(div).html("<img src=\"" + data + "\"  />");
				$(input).val(data);
			}
		});

		uploader.on('uploadError', function(file) {
			$(div).html("上传失败");
		});

	}

	//上传图片
	$(function() {
		uploadImg('.uploadBut1', ".uploadPreview1", "#pic");
	})
</script>

}#